/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 返利明细查询 （OEM）

// 返利明细查询列表 /ttFiRebateDetail/queryList
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateDetail/queryList`, params)
// 返利子项目查询
export const queryRebateSubprojects = (params) => axios.get(`${SERVER.WHOLESALES}/rebateSubprojects/queryRebateSubprojects`, {
  params
})

// 导出	 /ttFiRebateDetail/export
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateDetail/export`, params, {
  responseType: 'blob'
})

// 资金类型 /tmFiAccountType/list
export const getFundsType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)
// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
